package ejb;

import javax.ejb.Remote;
import except.StoreException;
import java.io.File;
import java.util.List;
/**
 *
 * @author Peetrr
 */
@Remote
public interface Store {
    public void add(File file) throws StoreException;

    public List<String> search(String title) throws StoreException;

    public List<String> searchAnnot(String title) throws StoreException;

    public void remove(String title) throws StoreException;

    public String getContents();

    public File download(String title, String param);

    public java.io.File download(java.lang.String title);

    @javax.annotation.PostConstruct
    @javax.ejb.TransactionAttribute
    public void initialize(String container) throws StoreException;

    @javax.annotation.PreDestroy
    @javax.ejb.TransactionAttribute
    public void destroy();

    
    
}
